package ucas.pin.web.domain;


import java.util.ArrayList;
import java.util.Collection;

import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import org.neo4j.ogm.annotation.EndNode;
import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.RelationshipEntity;
import org.neo4j.ogm.annotation.StartNode;

/**
 * @author pin
 */
@JsonIdentityInfo(generator=ObjectIdGenerators.PropertyGenerator.class, property="id")
@RelationshipEntity(type = "Consist")
public class Consist extends Relation{
//
//	@GraphId
//	private Long id;

	
	//private String describe;

//	@StartNode
//	private MedMaterial medMaterial;
//
//	@EndNode
//	private Prescription prescription;

	public Consist() {
	}

	public Consist(Prescription prescription, MedMaterial medMaterial) {
//		this.prescription = prescription;
//		this.medMaterial = medMaterial;
		this.setStart_Entity(prescription);
		this.setEnd_Entity(medMaterial);
	}


	
//	public MedMaterial getMedMaterial() {
//		return medMaterial;
//	}
//
//	public Prescription getPrescription() {
//		return prescription;
//	}

}
